package com.example.a22310.myapplication.Beans;

import java.util.List;

import static com.example.a22310.myapplication.GloableClass.Yuejian.IMG_URL;

public class ActivityOrder {

    /**
     * code : 200
     * orderlist : [{"apply_id":"1","train_id":"1","user_id":"1","date":"","pic":"1.jpg","apply_name":"周鑫","apply_price":"100","apply_userphone":"1538229112"},{"apply_id":"10","train_id":"9","user_id":"1","date":"2017-11-10 22:01:41","pic":"1.jpg","apply_name":"99","apply_price":"周鑫鑫","apply_userphone":"18941132032"}]
     */

    private int code;
    private List<OrderlistBean> orderlist;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<OrderlistBean> getOrderlist() {
        return orderlist;
    }

    public void setOrderlist(List<OrderlistBean> orderlist) {
        this.orderlist = orderlist;
    }

    public static class OrderlistBean {
        /**
         * apply_id : 1
         * train_id : 1
         * user_id : 1
         * date :
         * pic : 1.jpg
         * apply_name : 周鑫
         * apply_price : 100
         * apply_userphone : 1538229112
         */

        private String apply_id;
        private String train_id;
        private String user_id;
        private String date;
        private String pic;
        private String apply_name;
        private String apply_price;
        private String apply_userphone;

        public String getApply_id() {
            return apply_id;
        }

        public void setApply_id(String apply_id) {
            this.apply_id = apply_id;
        }

        public String getTrain_id() {
            return train_id;
        }

        public void setTrain_id(String train_id) {
            this.train_id = train_id;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getPic() {
            return IMG_URL+pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public String getApply_name() {
            return apply_name;
        }

        public void setApply_name(String apply_name) {
            this.apply_name = apply_name;
        }

        public String getApply_price() {
            return "￥"+apply_price;

        }

        public void setApply_price(String apply_price) {
            this.apply_price = apply_price;
        }

        public String getApply_userphone() {
            return apply_userphone;
        }

        public void setApply_userphone(String apply_userphone) {
            this.apply_userphone = apply_userphone;
        }
    }
}

